# 导入requests
import requests
import config

# 定义封装的登录接口类
class LoginApi:

    def __init__(self):
        self.url_login = config.BASE_URL + "/ssm_web/user/login"

    def login(self, phone, password):
        return requests.post(url=self.url_login,
                             params={"phone":phone, "password":password})